RunMacro(ProjectOption,String,Object[]) Method
Runs a macro.
'Declaration
Overloads Sub RunMacro( _
ByVal As ProjectOption, _
ByVal As String, _
ByVal () As Object _
)
'Usage
Dim instance As IMacro
Dim macroSource As ProjectOption
Dim macroName As String
Dim macroParameters() As Object
instance.RunMacro(macroSource, macroName, macroParameters)
Parameters
- macroSource
- The location of the macro. MacroEnumerationOption.Document indicates that the macro is located in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro is located in the Common VBA project.
- macroName
- The name of the macro to run.
- macroParameters
- An optional parameter to pass to the macro.